//
//  WalletTableViewCell.m
//  联付商圈
//
//  Created by 于洋 on 2017/7/18.
//  Copyright © 2017年 lianfu. All rights reserved.
//

#import "WalletTableViewCell.h"

@implementation WalletTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        _leftImageView = [[UIImageView alloc] initWithFrame:CGRectMake(15, 17.5, 15, 15)];
        [self.contentView addSubview:_leftImageView];
        
        _walletLabel = [[UILabel alloc] initWithFrame:CGRectMake(_leftImageView.frame.origin.x + _leftImageView.frame.size.width + 20, _leftImageView.frame.origin.y, 150, _leftImageView.frame.size.height)];
        _walletLabel.textColor = [UIColor blackColor];
        _walletLabel.font = [UIFont systemFontOfSize:17];
        [self.contentView addSubview:_walletLabel];
        
        
        _contentLb = [[UILabel alloc] initWithFrame:CGRectMake(_walletLabel.maxX , _leftImageView.frame.origin.y, SCREENW - _walletLabel.maxX-30, _leftImageView.frame.size.height)];
        _contentLb.textColor = [UIColor lightGrayColor];
        _contentLb.font = [UIFont systemFontOfSize:17];
        _contentLb.textAlignment = NSTextAlignmentRight;
        [self.contentView addSubview:_contentLb];
        
        _lineView = [[UIView alloc] initWithFrame:CGRectMake(_walletLabel.frame.origin.x, self.frame.size.height+6, SCREENW - _walletLabel.frame.origin.x, 0.5)];
        _lineView.backgroundColor = [UIColor lightGrayColor];
        [self.contentView addSubview:_lineView];
    }
    
    return self;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
